﻿using KinonekoSoftware.Extensions.Collections;
using KinonekoSoftware.JuXiaoYouDB.Objects;

namespace KinonekoSoftware.JuXiaoYouDB.Documents.General.Properties
{
    public sealed class PropertyContainer : RootObject
    {
        private string _name;
        private string _intro;
        
        /// <summary>
        /// 属性集合
        /// </summary>
        public ObservableList<PropertyElement> Elements { get; set; }
        
        /// <summary>
        /// 获取或设置 <see cref="Intro"/> 属性。
        /// </summary>
        public string Intro
        {
            get => _intro;
            set => SetValue(ref _intro, value);
        }

        /// <summary>
        /// 获取或设置 <see cref="Name"/> 属性。
        /// </summary>
        public string Name
        {
            get => _name;
            set => SetValue(ref _name, value);
        }
        
        public int Version { get; set; }
    }
}